import { PrintService } from './pages/print/index';
import { CheckMode } from './pages/initialization/checkMode';
import { NewFinishedOrders } from './pages/newFinishedOrders/newFinishedOrders';
import { NewFinishedOrdersService } from './pages/newFinishedOrders/index';
import { NewHome } from './pages/newHome/newHome';
import { NewHomeService } from './pages/newHome/index';
import { SetupService } from './pages/setup/index';
import { CheckOldEnv } from './pages/initialization/checkOldEnv';
import { FinishedOrders } from './pages/finishedOrders/index';
import { CheckEnv } from './pages/initialization/checkEnv';
import { Welcome } from './pages/initialization/welcome';
import { BindDevice } from './pages/initialization/bindDevice';
import { ConnectLDC } from './pages/initialization/connectLDC';
import { RemoteLogin } from './pages/initialization/remoteLogin';
import { initialization } from './pages/initialization/initialization';
import { Setup } from './pages/setup/setup';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './pages/home';
import { AboutComponent } from './pages/about';
import { NoContentComponent } from './pages/no-content';

import { DataResolver } from './app.resolver';


export const ROUTES: Routes = [
  { path: 'home', component: HomeComponent },
  { path: 'finishedOrders', component: FinishedOrders },
  { path: 'about', component: AboutComponent },
  SetupService.current.route,
  NewFinishedOrdersService.current.route,
  { path: 'newHome', component: NewHome },
  { path: 'newFinishedOrders', component: NewFinishedOrders },
  NewHomeService.current.route,
  {
    path: "initialization", component: initialization, children: [
      { path: "checkOldEnv", component: CheckOldEnv },
      { path: "remoteLogin", component: RemoteLogin },
      { path: "welcome", component: Welcome },
      { path: "bindDevice", component: BindDevice },
      { path: "checkEnv", component: CheckEnv },
      { path: "connectLDC", component: ConnectLDC },
      { path: "checkMode", component: CheckMode }
    ]
  },
  PrintService.current.route,
  { path: '**', component: NoContentComponent },
];


